import { createPinia } from 'pinia'
import persist from 'pinia-plugin-persistedstate'

const pinia = createPinia()
pinia.use(persist)
export default pinia
// 拿这个index.ts作为pinia的出口
export * from './modules/user' //相当于在接受user模块的所有按需导出(方法)导出
